import Vue from 'vue'
import Vuex from 'vuex'
import App from './App.vue'
import router from './router'
import store from './store'

import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import '@/assets/css/main.css'

import Tabs from '@components/tabs/tabs.vue'
import Tab from '@components/tabs/tab.vue'

import Notification from '@components/notification'

import request from '@utils/http'
import util from '@utils/utils'
import { api } from '@/config/app_const'
// 定义全局变量
Vue.prototype.$request = request
Vue.prototype.$api = api
Vue.prototype.$util = util

Vue.config.productionTip = false

Vue.use(Notification)
Vue.use(Vuex)
Vue.use(ElementUI)

Vue.component(Tabs.name, Tabs)
Vue.component(Tab.name, Tab)

const app = new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')

export default app
